package tools

import (
	"strconv"
	"strings"
)

func String2list(str string) []int {
	ans :=[]int{}
	split := strings.Split(str, ",")

	for _,s := range split {
		atoi, _ := strconv.Atoi(s)
		ans = append(ans, atoi)
	}
	return ans
}
